package com.app.mapper;

import com.app.model.ExposureModel;
import com.app.model.SystemModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface ExposureMapper extends BaseMapper<ExposureModel> {
    List<ExposureModel> getListByModel(ExposureModel model);

    int getCountByModel(ExposureModel model);

    List<ExposureModel> getList(ExposureModel model);

    int getCount(ExposureModel model);

    ExposureModel getContentById(int id);

    List<SystemModel> selectType();

    List<ExposureModel> search(String keyword);

    Integer getCountByType(Integer type);
}
